package org.platform.lwc.system.feign;


import org.platform.lwc.system.constant.SystemConstant;
import org.platform.lwc.system.vo.MenuPathSocietyRoleKeyVO;
import org.platform.lwc.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * User Feign接口类
 *
 * @author lwc
 */
@FeignClient(
        contextId = "ISysMenuClient",
        value = SystemConstant.APPLICATION_SYSTEM_NAME,
        path = SystemConstant.CONTEXT_PATH,
        fallback=ISysUserClientFallback.class
)
public interface ISysMenuClient {

    String API_PREFIX = "/feign/sysMenu";
    /**
     * description: 获取菜单对应的角色列表
     *
     * @author lwc
     * @date 2022/4/9
     */
    @GetMapping(API_PREFIX + "/getMenuPathSocietyRoleKey")
    R<List<MenuPathSocietyRoleKeyVO> > getMenuPathSocietyRoleKey();
}
